package com.design.pattern.latest.principle.liskosubstitution;

public class Test {
    public static void reSize(Rectangle rectangle) {
        while (rectangle.getWidth() <= rectangle.getLength()) {
            rectangle.setWidth(rectangle.getWidth() + 1);
        }
    }

    public static void main(String[] args) {
        Rectangle rectangle=new Rectangle();
        rectangle.setWidth(10);
        rectangle.setLength(20);
        reSize(rectangle);
    }
}
